/*
 * ContactService.java
 * Author:  lixh
 * Create Date:  2015年6月19日
 */
package com.yinhai.receiver;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

import com.yinhai.cfg.LoginConfigUtil;
import com.yinhai.service.CloudNoteServiceImpl;
import com.yinhai.service.ContactUserServiceImpl;

/**
 * ContactService (通信录同步service)
 *
 * Author:lixh
 */
public class ContactService extends Service {
    
    @Override
    public void onCreate() {
        super.onCreate();
        CloudNoteServiceImpl cloudNoteService = new CloudNoteServiceImpl(this.getApplicationContext());
        cloudNoteService.deleteAllCloudNote();
        
        ContactUserServiceImpl c = new ContactUserServiceImpl(this.getApplicationContext());
        
        c.initOnlineContact(LoginConfigUtil.getConfig(this.getApplicationContext()).getUsername());
    }
    
    /**
     * @param arg0
     * @return
     */
    @Override
    public IBinder onBind(Intent arg0) {
        return null;
    }
    
    
    
}
